chore(metrics): add log to tx store and metric for num height iterated on height sync#1071
chore(metrics): add log to tx store and metric for num height iterated on height sync#1071
Conversation
Greptile SummaryThis PR threads a Key changes:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant BP as Block Proposer
participant HS as HeightSync[TxStore]
participant TS as TxStore
participant M as Metrics
Note over HS: StartNewHeight(h)
HS->>TS: reset(logger) → new TxStore
HS->>M: (height change signalled)
Note over HS: EndCurrentHeight()
HS->>M: hsHeights.Mark(1)
HS->>HS: close(done)
BP->>HS: GetStore(ctx, h)
HS-->>BP: *TxStore (after done / ctx timeout)
BP->>TS: Txs(filter)
TS->>TS: filter & convert txs
TS->>TS: logger.Info("collected txs", total_in_store, num_selected)
TS->>M: txsCollected.Mark(numSelected)
TS-->>BP: map[addr][]*LazyTransaction
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #1071 +/- ##
==========================================
- Coverage 64.11% 63.91% -0.20%
==========================================
Files 331 331
Lines 23303 23316 +13
==========================================
- Hits 14941 14903 -38
+ Misses 6946 6944 -2
- Partials 1416 1469 +53
🚀 New features to boost your workflow:
|
Description
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
mainbranch